imcontext: Eat key events during preedit
authorMatthias Clasen <mclasen@redhat.com>
Thu, 15 Apr 2021 20:59:02 +0000 (16:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 15 Apr 2021 20:59:02 +0000 (16:59 -0400)
commit20fb64704df2b4218d4d04e80b143f5daf1d3f77
tree1d7808608846d577b2d5e4260a5f8cb7b7adb1d3
parent9b7f927b3c54fb65cae66ac1ed31307e8a55c0cf
imcontext: Eat key events during preedit

Avoid passing through random key press or release
events while we are showing preedit. That prevents
'accidents' like typing Ctrl-. bringing up the
Emoji chooser during preedit, or hitting Ctrl-a
after the Compose key moving the 'dot' around in
vim in terminals.
gtk/gtkimcontextsimple.c